﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WF.DAL;

namespace WF.Model
{
    public class MenuItemEntity : EntityBase<MenuItem>
    {
        #region 构造函数

        public MenuItemEntity() : base() { }
        public MenuItemEntity(MenuItem MenuItem) : base(MenuItem) { }
        #endregion

        #region 实现基类abstract属性

        public override string ID
        {
            get { return DbEntity.RowID; }
            set { DbEntity.RowID = value; this.SendPropertyChanged("RowID"); }
        }

        public override string DisplayName
        {
            get { return DbEntity.MenuName; }
        }

        #endregion

        #region Public 属性


        public string MenuCode
        {
            get
            {
                return DbEntity.MenuCode;
            }
            set
            {
                DbEntity.MenuCode = value; this.SendPropertyChanged("MenuCode");
            }
        }

        public string MenuFullCode
        {
            get
            {
                return DbEntity.MenuFullCode;
            }
            set
            {
                DbEntity.MenuFullCode = value; this.SendPropertyChanged("MenuFullCode");
            }
        }

        public string MenuName
        {
            get
            {
                return DbEntity.MenuName;
            }
            set
            {
                DbEntity.MenuName = value; this.SendPropertyChanged("MenuName");
            }
        }

        public string ParentID
        {
            get
            {
                return DbEntity.ParentID;
            }
            set
            {
                DbEntity.ParentID = value; this.SendPropertyChanged("ParentID");
            }
        }

        public string MenuURL
        {
            get
            {
                return DbEntity.MenuURL;
            }
            set
            {
                DbEntity.MenuURL = value; this.SendPropertyChanged("MenuURL");
            }
        }

        public string OperateID
        {
            get
            {
                return DbEntity.OperateID;
            }
            set
            {
                DbEntity.OperateID = value; this.SendPropertyChanged("OperateID");
            }
        }

        public short MenuOrder
        {
            get
            {
                return DbEntity.MenuOrder;
            }
            set
            {
                DbEntity.MenuOrder = value; this.SendPropertyChanged("MenuOrder");
            }
        }

        public short FlagDeleted
        {
            get
            {
                return DbEntity.FlagDeleted;
            }
            set
            {
                DbEntity.FlagDeleted = value; this.SendPropertyChanged("FlagDeleted");
            }
        }

        #endregion
    }
}
